package com.sz.tomcat.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController

public class TomController {
    @GetMapping("/tom/get")
    public String tomGet(String name){
        return "get"+name;
    }
    @PostMapping("/tom/post")
    public String tomPost(String name ){
        return "post"+name;
    }
}
